const agentRoutes = [
    //代理商tab
    {
        path: '/agentHome',
        name: 'agentHome',
        component: () =>
            import ('../views/agent/agentHome.vue'),
        children: [{
            path: '/agentHome/agent',
            component: () =>
                import ('../views/agent/page/agent.vue'),
        }, {
            path: '/agentHome/user',
            component: () =>
                import ('../views/agent/page/user.vue'),
        }, {
            path: '/agentHome/inverter',
            component: () =>
                import ('../views/agent/page/inverter.vue'),
        }, {
            path: '/agentHome/sites',
            component: () =>
                import ('../views/agent/page/sites.vue'),
        }]
    },
    {
        path: '/agentIndex',
        name: 'agentIndex',
        component: () =>
            import ('../views/agent/agentIndex.vue'),
    },
    {
        path: '/agentsitelist',
        name: 'agentsitelist',
        component: () =>
            import ('../views/agent/page/siteList.vue')
    },
    {
        path: '/agentsitedetail',
        name: 'agentsitedetail',
        component: () =>
            import ('../views/agent/details/SiteDetail.vue')
    },
    {
        path: '/agentsitedetailChart',
        name: 'agentsitedetailChart',
        component: () =>
            import ('../views/agent/details/SiteDetailchart.vue')
    },
    {
        path: '/agentsolar',
        name: 'agentsolar',
        component: () =>
            import ('../views/agent/details/Solar.vue')
    },
    {
        path: '/agentfeedin',
        name: 'agentfeedin',
        component: () =>
            import ('../views/agent/details/Feedin.vue')
    },
    {
        path: '/agentload',
        name: 'agentload',
        component: () =>
            import ('../views/agent/details/Load.vue')
    },
    {
        path: '/agentsiteinvlist',
        name: 'agentsiteinvlist',
        component: () =>
            import ('../views/agent/details/SiteInvList.vue')
    },
    {
        path: '/agentinvdetail',
        name: 'agentinvdetail',
        component: () =>
            import ('../views/agent/details/InverterDetail.vue')
    },
    {
        path: '/agentbattery',
        name: 'agentbattery',
        component: () =>
            import ('../views/agent/details/Battery.vue')
    },
    {
        path: '/agentbatterydetail',
        name: 'agentbatterydetail',
        component: () =>
            import ('../views/agent/details/BatteryDetail.vue')
    }
]

export default agentRoutes